package com.azure;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.time.Instant;
import java.util.Date;

public class Log4jTest {
    public static void main(String[] args) {
        Logger LOGGER = LogManager.getLogger(Log4jTest.class);
//        Logger LOGGER = LogManager.getLogger("dd");
        LOGGER.fatal("fatal");
        LOGGER.error("error");
        LOGGER.warn("warn");
        LOGGER.info("info");
        LOGGER.debug("debug");
        Instant now = Instant.now();
        System.out.println(Instant.now());
        for (int i = 0; i < 10000*1000; i++) {
            LOGGER.info("test111111:{},cost:{}",i,Instant.now().getEpochSecond()-now.getEpochSecond());
        }
        System.out.println("---"+(now.getEpochSecond()-Instant.now().getEpochSecond()));
//        LOGGER.trace("trace");
//        LOGGER = LogManager.getLogger("com.azure");
//        LOGGER.info("test---");
//        LogManager.get

    }
}
